<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 4.3.2 or newer
 *
 * @package		CodeIgniter
 * @author		Dhaval
 * @copyright	Copyright (c) 2008, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * Log all the unique information of the data 
 *
 * @access	public
 * @param	string
 * @param	array
 * @return	void
 */	
if ( ! function_exists('log_cron_updates'))
{
	function log_cron_updates ($desc, $updates)
	{
		$data = array(
					'controller'	=> $CI->session->CI->router->class,
					'description'	=> $desc,
					'updates' 		=> serialize($updates)
				);	
		
		$this->db->insert('cron_update_log', $data);		
	}
}

//END of File
?>